<%@page import="y1s.controller.Utils"%>
<%@page import="y1s.data.Data"%>
<%@page import="java.util.Random"%>
<%@page import="com.mongodb.BasicDBObject"%>
<%@page import="com.mongodb.DBCursor"%>
<%@page import="com.mongodb.DBCollection"%>
<%
try{
DBCollection coll = Data.data("domain");
Random generator = new Random();
int r = generator.nextInt(1000000);
DBCursor ldomain = coll.find(new BasicDBObject("random",new BasicDBObject("$lt",r))).sort(new BasicDBObject("random",-1)).limit(15);
if(ldomain.size() > 0)
{
%>

<%
out.print(Utils.returnSame(ldomain));
}	
} catch (Exception e)
{}
%>
</ul>